package com.dong.aoptools.cast.cls;

import com.dong.aoptools.cast.method.MethodAOPVisitor;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;

/**
 * @description:
 * @author: 陈瑞东
 * @create: 2021-11-12 11:31
 */
public class ClassAOPVisitor extends ClassVisitor implements Opcodes {

    public ClassAOPVisitor(ClassVisitor cv) {
        super(ASM5, cv);
    }

    @Override
    public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) {
        MethodVisitor mv = cv.visitMethod(access, name, descriptor, signature, exceptions);
        return new MethodAOPVisitor(api, mv, access, name, descriptor);
    }
}
